<div class="item-detail-dialog training-tech">
  <div class="item-detail-dialog-header">
    <div class="title-txt">
      <span>新增维保记录</span>
    </div>
  </div>
  <div desc="autofocus-input">
    <input type="text" autofocus="true" 
      style="opacity: 0;width: 0; height: 0;" />
  </div>
  <div class="item-detail-dialog-content">
    <form name="addForm" novalidate>
      <div class="row-item">
        <div class="fixed-left-label"><label class="maintenance-item"><b>*</b>维保时间：</label></div>
        <div class="right-value pa-input maintenance-item">
          <input type="text" ng-datepicker name="maintainTime" required 
            ng-model="vm.maintainRecordData.maintainTime" />
        </div>
        <span style="line-height: 28px;color: #fd8c71;font-size: 12px;"
          ng-show="(addForm.$submitted || addForm.maintainTime.$dirty) && addForm.maintainTime.$error.required">
          必填
        </span>
      </div>
      <div class="row-item">
        <div class="fixed-left-label"><label class="maintenance-item"><b>*</b>维保内容：</label></div>
        <div class="right-value pa-input maintenance-item">
          <input type="text" name="maintainContent" required
            ng-model="vm.maintainRecordData.maintainContent" />
        </div>
        <span style="line-height: 28px;color: #fd8c71;font-size: 12px;"
          ng-show="(addForm.$submitted || addForm.maintainContent.$dirty) && addForm.maintainContent.$error.required">
          必填
        </span>
      </div>
      <div>
        <common-attachment-upload
          component-id="cp2"
          pick-btn-id="avatar_attachment_picker_maintence_check"
          upload-url="{{fileUploadUrl.device}}"
          file-list="vm.maintainRecordData.fileBeans">
        </common-attachment-upload>
      </div>
    </form>     
  </div>
  <div class="item-detail-dialog-footer">
    <a class="pa-btn" ng-click="vm.submit(addForm)">
      <i class="fa fa-save"></i>
      <span class="ml5">确定</span>
    </a>
    <a class="pa-btn" ng-click="closeThisDialog()">
      <i class="fa fa-times"></i>
      <span class="ml5">取消</span>
    </a>
  </div>
</div>